package ucalgary.seng401.tss;

public class LineScanner {
	//attributes area
	int Status;  //StatusN = {Idle0, HookOn1, HookOff2, Busy3, Invalid4}
	int PortAddress; /* FF00H <= PortAddressP <= FF0FH>, due to can not direct
			 map it into a java data type, here use int to record the information.*/
	byte ScanInput; //ScanInputB = <xxxx xxxbB>
	boolean CurrentScan; //CurrentScanBL = {HookOffT, HookOnF}
	boolean LastScan; //LastScanBL = {HookOffT, HookOnF}

	public LineScanner () {
		this.Status = 0;
		this.PortAddress = 0;
		this.ScanInput = 0;
		this.CurrentScan = false;
		this.LastScan = false;
	}

	public LineScanner (int status, int portAddress, byte scanInput, boolean currentScan, boolean lastScan) {
		this.Status = status;
		this.PortAddress = portAddress; 
		this.ScanInput = scanInput;
		this.CurrentScan = currentScan;
		this.LastScan = lastScan; 
	}
	public int getStatus() {
		return Status;
	}

	public void setStatus(int status) {
		Status = status;
	}

	public int getPortAddress() {
		return PortAddress;
	}

	public void setPortAddress(int portAddress) {
		PortAddress = portAddress;
	}

	public byte getScanInput() {
		return ScanInput;
	}

	public void setScanInput(byte scanInput) {
		ScanInput = scanInput;
	}

	public boolean isCurrentScan() {
		return CurrentScan;
	}

	public void setCurrentScan(boolean currentScan) {
		CurrentScan = currentScan;
	}

	public boolean isLastScan() {
		return LastScan;
	}

	public void setLastScan(boolean lastScan) {
		LastScan = lastScan;
	}

}

